package com.by;

import com.by.config.SpringConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author LittleDesire
 * @description
 * @date 2022-03-21 周一 18:13
 * @since 17
 */
public class App {
    final static Logger log = LoggerFactory.getLogger(App.class);
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
        ctx.register(SpringConfig.class);
        ctx.refresh();

        for (int i = 0; i < 100; i++) {


        System.out.println(2*2);
        log.debug("debug......");
        log.info("info -----");
        log.warn("warn -----");
        log.error("error ----");
        }
    }

}
